#ifndef _SET_UART_H
#define _SET_UART_H
#include <avr/io.h>
#include <avr/interrupt.h>
#include <stdio.h>

#define USART_C0	&USARTC0
#define RX_BUFFER_SIZE0 40

extern volatile char rx_buffer0[RX_BUFFER_SIZE0];
extern volatile unsigned char rx_wr_index0;
extern volatile unsigned char rx_rd_index0;
extern volatile unsigned char rx_counter0;
extern volatile char rx_buffer_overflow0;
extern char kal[50];	//Buffer untuk sprintf

void myInit_UART(void);
char usart_putchar(USART_t *usart, unsigned char c);
char myUART_Bufgetchar(void);
void myUART_Print(char *k);
#endif